package com.keepstudy;

/**
 * @author Shengkang.Mo
 * @create 2021-02-09 10:08
 */
public class DemoService {

    private DemoProperties properties;

    public DemoService() {
    }

    public DemoService(DemoProperties userProperties) {
        this.properties = userProperties;
    }

    public void sayHello() {
        System.out.println("hi, 我叫: " + properties.getName() +
                ", 今年" + properties.getAge() + "岁"
                + ", 性别: " + properties.getSex());
    }
}
